import hyRequest from './index'

export function getBanners() {
  return hyRequest.get("/banner", {
    type: 2
  })
}

// export function getRankings(idx) {
//   return hyRequest.get("/top/list", {
//     idx
//   })
// }
export function getRankings(id) {
  return hyRequest.get("/playlist/detail", {
    id
  })
}


// cat -> category 类别
export function getSongMenu(cat = "全部", limit = 6, offset = 0) {
  return hyRequest.get("/top/playlist", {
    cat,
    limit,
    offset
  })
}

export function getSongMenuDetail(id) {
  return hyRequest.get("/playlist/detail/dynamic", {
    id
  })
}